package com.xuebusi.toutiao.admin.api.article.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 文章频实体类
 */
@Data
@TableName("tb_channel")
public class ChannelEntity {
    // 频道id
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 频道名称
    @TableField("name")
    private String name;
}
